<template>
  <div class="content-header">
    <div class="selectList">
      <el-form ref="form" :model="form" label-width="80px" @submit.native.prevent="searchingBtn">
        <!-- </el-form-item> -->
        <div class="search_con">
          <el-input v-model="form.searchText" prefix-icon="el-icon-search" 
          @blur="searchingBtn" placeholder="请输入"
          @keyup.enter.native="searchingBtn"></el-input>
        </div>
        <div class="aside_bottom">
          <el-button type="primary" size="small" @click="addBtn()">
            <i class="el-icon-plus"></i>
            添加标签
          </el-button>
        </div>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: "CustomM",
  props: {
  },
  data() {
    return {
      form: {
        searchText: "",
      },
    }
  },
  methods: {
    searchingBtn() {
      this.$emit('searchingBtn',this.form)
    },
    addBtn(){
      this.$emit('addBtn',this.form)
    },
  }
}
</script>

<style lang="scss" scoped>
.content-header {
  width: 100%;
}

.selectList {
  background: #141415;
  height: auto;
  display: flex;
  justify-content: flex-end;
  padding-right: 30px;
  padding-top:30px;
  .el-form {
    display: flex;
    flex-wrap: wrap;
    height:37.5px;
    vertical-align: middle;
    padding-top:2.5px;
    .el-input {
      width: 200px;
      margin-right: 15px;
      margin-bottom: 5px;
    }
   
  }
}
::v-deep {
  input{
    border: none;
  }
  .search_con{
    height: 35px !important;
    display: flex;
    button{
      height: 35px !important;
      line-height: 6px;
      // border-top-right-radius: 0px;
      // border-bottom-right-radius: 0px;
    }
    .el-input__inner{
      border:none;
    }
    input{
      border-top-left-radius: 0px;
      border-bottom-left-radius: 0px;
      border: none;
    }
    .el-input__inner {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }
  }
  
  .aside_bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    margin-right: 20px;
  }


  .el-input {
    input {
      height: 35px !important;
    }

    
  }
}
</style>
